<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人简介</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 导航栏样式 */
        nav {
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #2c3e50;
        }

        .nav-links {
            list-style: none;
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #2c3e50;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: #3498db;
        }

        /* 主要内容区域 */
        main {
            margin-top: 80px;
        }

        section {
            background-color: #fff;
            border-radius: 8px;
            padding: 3rem;
            margin: 2rem 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        h1, h2 {
            color: #2c3e50;
            margin-bottom: 1.5rem;
        }

        /* 个人简介部分 */
        .profile {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .profile-image {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .profile-content {
            flex: 1;
        }

        /* 技能部分 */
        .skills {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
        }

        .skill-item {
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 6px;
            text-align: center;
        }

        .skill-item h3 {
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }

        /* 作品集部分 */
        .portfolio {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .portfolio-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .portfolio-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .portfolio-item:hover img {
            transform: scale(1.05);
        }

        .portfolio-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(0,0,0,0.7);
            color: #fff;
            padding: 1rem;
            transform: translateY(100%);
            transition: transform 0.3s;
        }

        .portfolio-item:hover .portfolio-overlay {
            transform: translateY(0);
        }

        /* 页脚样式 */
        footer {
            background-color: #2c3e50;
            color: #fff;
            padding: 2rem 0;
            margin-top: 3rem;
        }

        .footer-content {
            text-align: center;
        }

        .social-links {
            margin-top: 1rem;
        }

        .social-links a {
            color: #fff;
            text-decoration: none;
            margin: 0 1rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .profile {
                flex-direction: column;
                text-align: center;
            }

            .nav-links {
                display: none;
            }
        }
    </style>
</head>
<body>
    <nav>
        <div class="container nav-container">
            <div class="logo">我的简介</div>
            <ul class="nav-links">
                <li><a href="#about">关于我</a></li>
                <li><a href="#skills">技能</a></li>
                <li><a href="#portfolio">作品集</a></li>
            </ul>
        </div>
    </nav>

    <main class="container">
        <section id="about">
            <div class="profile">
                <img src="https://via.placeholder.com/200" alt="个人照片" class="profile-image">
                <div class="profile-content">
                    <h1>你的名字</h1>
                    <p>资深开发工程师</p>
                    <p>你好！我是一名充满热情的开发工程师，拥有多年的开发经验。我热爱编程，善于解决问题，并且持续学习新技术。在工作中，我注重代码质量和用户体验，致力于创造优秀的软件产品。</p>
                </div>
            </div>
        </section>

        <section id="skills">
            <h2>专业技能</h2>
            <div class="skills">
                <div class="skill-item">
                    <h3>前端开发</h3>
                    <p>HTML5, CSS3, JavaScript</p>
                </div>
                <div class="skill-item">
                    <h3>后端开发</h3>
                    <p>Node.js, Python, Java</p>
                </div>
                <div class="skill-item">
                    <h3>数据库</h3>
                    <p>MySQL, MongoDB, Redis</p>
                </div>
                <div class="skill-item">
                    <h3>开发工具</h3>
                    <p>Git, Docker, VS Code</p>
                </div>
            </div>
        </section>

        <section id="portfolio">
            <h2>作品集</h2>
            <div class="portfolio">
                <div class="portfolio-item">
                    <img src="images/扩图01.png" alt="作品1">
                    <div class="portfolio-overlay">
                        <h3>作品 1</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
                <div class="portfolio-item">
                    <img src="images/扩图03.png" alt="作品2">
                    <div class="portfolio-overlay">
                        <h3>作品 2</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
                <div class="portfolio-item">
                    <img src="images/扩图04.png" alt="作品3">
                    <div class="portfolio-overlay">
                        <h3>作品 3</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
                <div class="portfolio-item">
                    <img src="images/扩图05.png" alt="作品4">
                    <div class="portfolio-overlay">
                        <h3>作品 4</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
                <div class="portfolio-item">
                    <img src="images/扩图06.png" alt="作品5">
                    <div class="portfolio-overlay">
                        <h3>作品 5</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
                <div class="portfolio-item">
                    <img src="images/扩图07.png" alt="作品6">
                    <div class="portfolio-overlay">
                        <h3>作品 6</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
                <div class="portfolio-item">
                    <img src="images/扩图08.png" alt="作品7">
                    <div class="portfolio-overlay">
                        <h3>作品 7</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
                <div class="portfolio-item">
                    <img src="images/扩图09.png" alt="作品8">
                    <div class="portfolio-overlay">
                        <h3>作品 8</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
                <div class="portfolio-item">
                    <img src="images/扩图10.png" alt="作品9">
                    <div class="portfolio-overlay">
                        <h3>作品 9</h3>
                        <p>点击查看大图</p>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <footer>
        <div class="container footer-content">
            <p>© 2024 个人简介. All rights reserved.</p>
            <div class="social-links">
                <a href="#">GitHub</a>
                <a href="#">LinkedIn</a>
                <a href="#">Email</a>
            </div>
        </div>
    </footer>
    <!-- 灯箱容器 -->
    <div id="lightbox" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); z-index: 2000; justify-content: center; align-items: center;">
        <span style="position: absolute; top: 20px; right: 30px; color: white; font-size: 30px; cursor: pointer;" onclick="closeLightbox()">&times;</span>
        <img id="lightbox-img" src="" style="max-width: 90%; max-height: 90%; object-fit: contain;">
    </div>

    <script>
        // 为所有作品集图片添加点击事件
        document.addEventListener('DOMContentLoaded', function() {
            const portfolioItems = document.querySelectorAll('.portfolio-item');
            portfolioItems.forEach(item => {
                item.addEventListener('click', function() {
                    const imgSrc = this.querySelector('img').src;
                    openLightbox(imgSrc);
                });
            });
        });

        // 打开灯箱
        function openLightbox(imgSrc) {
            const lightbox = document.getElementById('lightbox');
            const lightboxImg = document.getElementById('lightbox-img');
            
            lightboxImg.src = imgSrc;
            lightbox.style.display = 'flex';
            
            // 禁止背景滚动
            document.body.style.overflow = 'hidden';
        }

        // 关闭灯箱
        function closeLightbox() {
            const lightbox = document.getElementById('lightbox');
            lightbox.style.display = 'none';
            
            // 恢复背景滚动
            document.body.style.overflow = 'auto';
        }

        // 点击灯箱背景关闭
        document.getElementById('lightbox').addEventListener('click', function(e) {
            if (e.target === this) {
                closeLightbox();
            }
        });
    </script>
</body>
</html>